import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)

import user from './modules/user'
import websocket from './modules/websocket'
import contractWebsocket from './modules/contract-websocket'
import cms from './modules/cms'
import common from './modules/common'


import deal from './modules/deal'

const store = new Vuex.Store({
	modules: {
		websocket: websocket,
		contractWebsocket:contractWebsocket,
		user: {
			namespaced: true,
			...user
		},
		cms: {
			namespaced: true,
			...cms
		  },
		  deal: {
			namespaced: true,
			...deal
		  },common: {
				namespaced: true,
				...common
				},
	}
})

export default store
